package com.backend.mapper;


import com.backend.entity.AssInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AssInforMapper {

    /**
     * 查询社团信息;
     * @param id  ;
     * @return
     */

    List<AssInformation> lookUpAllAss(Integer id);

    List<Map<String,String>> getAllAssByAdmin();

    Integer JoinAss(@Param("userId") String userId,@Param("assId") Integer assId);

    List<Map<String,String>> getAllAss(@Param("assId") String assId);

    Map<String,String> ifwhether(@Param("assId") String assId,@Param("userId") String userId);
    /**
     * 查询社团，通过名称查询社团
     * @param assName
     * @return
     */
    List<AssInformation> lookUpAssByName(String assName);

    Map<String,String> getPageTotle();
}
